function doPost(url,data,callbackfunc) {
    //console.log("doPost:"+callbackfunc)
    if (false) {
        $.post(url, data,
            //headers:{'Access-Control-Allow-Origin':'*'},
            function (data, status) {
                //alert("Data: " + data + "nStatus: " + status);
                //alert($("#result"));
                callbackfunc(data,status);
            });
    } else {
        $.ajax({
            url: url,
            //'Access-Control-Allow-Origin':'*'
            type: "post",
            traditional: true,
            data: data,//JSON.stringify(data),
            success: function (data){
                callbackfunc(data,"success");
            }
        });
    }

}

function doGet(url,callbackfunc) {

        $.ajax({
            url: url,
            //'Access-Control-Allow-Origin':'*'
            type: "get",
            traditional: true,
            success: function (data){
                callbackfunc(data,"success");
            }
        });


}
